import request from '@/utils/request';

export function addFinanceRecord(record) {
    return request.post('/finance/add', record);
}

export function deleteFinanceRecord(recordId) {
    return request.delete(`/finance/delete/${recordId}`);
}

export function updateFinanceRecord(record) {
    return request.put('/finance/update', record);
}

export function getFinanceRecordsByUserId(userId) {
    return request.get(`/finance/user/${userId}`);
}
